package com.rengl.webmvc.service.impl;



import com.rengl.webmvc.dao.UserMapper;
import com.rengl.webmvc.model.User;
import com.rengl.webmvc.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserMapper userMapper = new UserMapper();
    @Override
    public void add(User user) {
        userMapper.add(user);
    }

    @Override
    public List<User> list() {
        return userMapper.list();
    }
}
